<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">

<head>
    <meta charset="UTF-8">
    <title>邮箱验证码</title>
    <style>
        table {
            width: 700px;
            margin: 0 auto;
        }

        #top {
            width: 700px;
            border-bottom: 1px solid #ccc;
            margin: 0 auto 30px;
        }

        #top table {
            font: 12px Tahoma, Arial, 宋体;
            height: 40px;
        }

        #content {
            width: 680px;
            padding: 0 10px;
            margin: 0 auto;
        }

        #content_top {
            line-height: 1.5;
            font-size: 14px;
            margin-bottom: 25px;
            color: #4d4d4d;
        }

        #content_top strong {
            display: block;
            margin-bottom: 15px;
        }

        #content_top strong span {
            color: #f60;
            font-size: 16px;
        }

        #code {
            color: #f60;
            font-size: 24px;
            display: flex;
            justify-content: center;
            align-items: center;
            margin: 30px 0;
        }

        .button {
            color: #FE4F70;
            margin-left: 10px;
            height: 80px;
            width: 80px;
            resize: none;
            font-size: 42px;
            border: none;
            outline: none;
            padding: 10px 15px;
            background: #ededed;
            text-align: center;
            border-radius: 17px;
            box-shadow: 6px 6px 12px #cccccc,
            -6px -6px 12px #ffffff;
        }

        .button:hover {
            box-shadow: inset 6px 6px 4px #d1d1d1,
            inset -6px -6px 4px #ffffff;
        }
        #content_bottom {
            margin-bottom: 30px;
        }

        #content_bottom small {
            display: block;
            margin-bottom: 20px;
            font-size: 12px;
            color: #747474;
        }


        #bottom div {
            padding: 10px 10px 0;
            border-top: 1px solid #ccc;
            color: #747474;
            margin-bottom: 20px;
            line-height: 1.3em;
            font-size: 12px;
        }

        #content_top strong span {
            font-size: 18px;
            color: #FE4F70;
        }

        #sign {
            text-align: right;
            font-size: 18px;
            color: #FE4F70;
            font-weight: bold;
        }

        #code {
            height: 100px;
            width: 680px;
            text-align: center;
            margin: 30px 0;
        }

        #code div {
            height: 100px;
            width: 680px;
        }

        .button {
            color: #FE4F70;
            margin-left: 10px;
            height: 80px;
            width: 80px;
            resize: none;
            font-size: 42px;
            border: none;
            outline: none;
            padding: 10px 15px;
            background: #ededed;
            text-align: center;
            border-radius: 17px;
            box-shadow: 6px 6px 12px #cccccc,
            -6px -6px 12px #ffffff;
        }

        .button:hover {
            box-shadow: inset 6px 6px 4px #d1d1d1,
            inset -6px -6px 4px #ffffff;
        }
    </style>
</head>
<body>
    <table>
        <tbody>
            <tr>
                <td>
                    <div id="top">
                        <table>
                            <tbody>
                                <tr>
                                    <td></td>
                                </tr>
                            </tbody>
                        </table>
                    </div>
                    <div id="content">
                        <div id="content_top">
                            <strong>尊敬的用户：您好！</strong>
                            <strong>
                                您正在进行<span>注册账号</span>操作,请在验证码中输入以下验证码完成操作:<span>[[${code}]]</span>
                            </strong>
                            <div id="code">
                                <button class="button" th:each="a:${codes}">[[${a}]]</button>
                            </div>
                        </div>
                        <div id="content_bottom">
                            <small>
                                注意：此操作可能会修改您的密码、登录邮箱或绑定手机。如非本人操作，请及时登录并修改密码以保证帐户安全
                                <br>（工作人员不会向你索取此验证码，请勿泄漏！)
                            </small>
                        </div>
                    </div>
                    <div id="bottom">
                        <div>
                            <p>此为系统邮件，请勿回复<br>
                                请保管好您的邮箱，避免账号被他人盗用
                            </p>
                            <p id="sign">——Romantik</p>
                        </div>
                    </div>
                </td>
            </tr>
        </tbody>
    </table>
<!--    邮件一般不允许script会被过滤掉-->
<!--    <script type="text/javascript">-->
<!--        function copyCode() {-->
<!--            let code = document.getElementById("copy-btn").getAttribute("data-code")-->
<!--            navigator.clipboard.writeText(code).then(function() {-->
<!--                alert("验证码已复制到剪贴板！");-->
<!--            }, function() {-->
<!--                alert("复制失败，请手动复制验证码。");-->
<!--            });-->
<!--        }-->

<!--    </script>-->
</body>